import {request} from './require'

export function getCategory() {
  return request ({
    url: './category'
  })
}

export function getSubCategory(maitKey) {
  return request({
    url: '/subcategory',
    params: {
      maitKey
    }
  })
}